package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class Chat extends BaseDomain {
    public static final int STATE_UNREAD=1; //未读
    public static final int STATE_READ=2; //已读

    //聊天时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT+8")
    private Date chatTime;
    //发送人
    private User send;
    //接收人
    private User accept;
    //聊天内容
    private String content;
    //状态
    private Integer state=STATE_UNREAD;


}